package com.owc.common.enums;

import com.owc.common.converter.IDecodeAdvice;
import com.owc.common.encryption.Base64Decode;
import com.owc.common.encryption.XXTEADecode;

public enum DecodeEnum {

    BASE64{
        @Override
        public IDecodeAdvice<String> decodeAdvice() {
            return new Base64Decode();
        }
    },
    XXTEA{
        @Override
        public IDecodeAdvice<byte[]> decodeAdvice() {
            return new XXTEADecode();
        }
    };

    /**
     * Define the decryptoin handler.
     */
    public abstract IDecodeAdvice decodeAdvice();

}
